﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FilterProduct.ascx.cs" Inherits="HCFramework.Product.FrontEndControl.FilterProduct" %>
<asp:Literal ID="litFilter" runat="server"></asp:Literal>
<asp:Button ID="btnFilter" CssClass="btnFilter" runat="server" Text="Lọc" />
<script type="text/javascript">
    $(document).ready(function () {
        $(".btnFilter").click(function () {
            var queryFilter = "";
            $(".filterItem:checked").each(function () {
                queryFilter += $(this).attr("value") + " ";
            });
            queryFilter = $.trim(queryFilter);
            queryFilter = ReplaceAll(queryFilter, " ", ",");
            var url = document.URL;
            url = SetPara(url, "filters", queryFilter);
            window.location = url;
            return false;
        });
    });
</script>
